Optimal. Leaf size=161 \[ \frac {1}{3} d x^3 \left (a+b \csc ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \csc ^{-1}(c x)\right )+\frac {b e x^4 \sqrt {c^2 x^2-1}}{20 c \sqrt {c^2 x^2}}+\frac {b x \left (20 c^2 d+9 e\right ) \tanh ^{-1}\left (\frac {c x}{\sqrt {c^2 x^2-1}}\right )}{120 c^4 \sqrt {c^2 x^2}}+\frac {b x^2 \sqrt {c^2 x^2-1} \left (20 c^2 d+9 e\right )}{120 c^3 \sqrt {c^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.11, antiderivative size = 161, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 7, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.368, Rules used = {14, 5239, 12, 459, 321, 217, 206} \[ \frac {1}{3} d x^3 \left (a+b \csc ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \csc ^{-1}(c x)\right )+\frac {b x^2 \sqrt {c^2 x^2-1} \left (20 c^2 d+9 e\right )}{120 c^3 \sqrt {c^2 x^2}}+\frac {b x \left (20 c^2 d+9 e\right ) \tanh ^{-1}\left (\frac {c x}{\sqrt {c^2 x^2-1}}\right )}{120 c^4 \sqrt {c^2 x^2}}+\frac {b e x^4 \sqrt {c^2 x^2-1}}{20 c \sqrt {c^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 206
Rule 217
Rule 321
Rule 459
Rule 5239
Rubi steps
\begin {align*} \int x^2 \left (d+e x^2\right ) \left (a+b \csc ^{-1}(c x)\right ) \, dx &=\frac {1}{3} d x^3 \left (a+b \csc ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \csc ^{-1}(c x)\right )+\frac {(b c x) \int \frac {x^2 \left (5 d+3 e x^2\right )}{15 \sqrt {-1+c^2 x^2}} \, dx}{\sqrt {c^2 x^2}}\\ &=\frac {1}{3} d x^3 \left (a+b \csc ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \csc ^{-1}(c x)\right )+\frac {(b c x) \int \frac {x^2 \left (5 d+3 e x^2\right )}{\sqrt {-1+c^2 x^2}} \, dx}{15 \sqrt {c^2 x^2}}\\ &=\frac {b e x^4 \sqrt {-1+c^2 x^2}}{20 c \sqrt {c^2 x^2}}+\frac {1}{3} d x^3 \left (a+b \csc ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \csc ^{-1}(c x)\right )-\frac {\left (b c \left (-20 d-\frac {9 e}{c^2}\right ) x\right ) \int \frac {x^2}{\sqrt {-1+c^2 x^2}} \, dx}{60 \sqrt {c^2 x^2}}\\ &=\frac {b \left (20 c^2 d+9 e\right ) x^2 \sqrt {-1+c^2 x^2}}{120 c^3 \sqrt {c^2 x^2}}+\frac {b e x^4 \sqrt {-1+c^2 x^2}}{20 c \sqrt {c^2 x^2}}+\frac {1}{3} d x^3 \left (a+b \csc ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \csc ^{-1}(c x)\right )-\frac {\left (b \left (-20 d-\frac {9 e}{c^2}\right ) x\right ) \int \frac {1}{\sqrt {-1+c^2 x^2}} \, dx}{120 c \sqrt {c^2 x^2}}\\ &=\frac {b \left (20 c^2 d+9 e\right ) x^2 \sqrt {-1+c^2 x^2}}{120 c^3 \sqrt {c^2 x^2}}+\frac {b e x^4 \sqrt {-1+c^2 x^2}}{20 c \sqrt {c^2 x^2}}+\frac {1}{3} d x^3 \left (a+b \csc ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \csc ^{-1}(c x)\right )-\frac {\left (b \left (-20 d-\frac {9 e}{c^2}\right ) x\right ) \operatorname {Subst}\left (\int \frac {1}{1-c^2 x^2} \, dx,x,\frac {x}{\sqrt {-1+c^2 x^2}}\right )}{120 c \sqrt {c^2 x^2}}\\ &=\frac {b \left (20 c^2 d+9 e\right ) x^2 \sqrt {-1+c^2 x^2}}{120 c^3 \sqrt {c^2 x^2}}+\frac {b e x^4 \sqrt {-1+c^2 x^2}}{20 c \sqrt {c^2 x^2}}+\frac {1}{3} d x^3 \left (a+b \csc ^{-1}(c x)\right )+\frac {1}{5} e x^5 \left (a+b \csc ^{-1}(c x)\right )+\frac {b \left (20 c^2 d+9 e\right ) x \tanh ^{-1}\left (\frac {c x}{\sqrt {-1+c^2 x^2}}\right )}{120 c^4 \sqrt {c^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.18, size = 121, normalized size = 0.75 \[ \frac {c^2 x^2 \left (8 a c^3 x \left (5 d+3 e x^2\right )+b \sqrt {1-\frac {1}{c^2 x^2}} \left (c^2 \left (20 d+6 e x^2\right )+9 e\right )\right )+8 b c^5 x^3 \csc ^{-1}(c x) \left (5 d+3 e x^2\right )+b \left (20 c^2 d+9 e\right ) \log \left (x \left (\sqrt {1-\frac {1}{c^2 x^2}}+1\right )\right )}{120 c^5} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.61, size = 170, normalized size = 1.06 \[ \frac {24 \, a c^{5} e x^{5} + 40 \, a c^{5} d x^{3} + 8 \, {\left (3 \, b c^{5} e x^{5} + 5 \, b c^{5} d x^{3} - 5 \, b c^{5} d - 3 \, b c^{5} e\right )} \operatorname {arccsc}\left (c x\right ) - 16 \, {\left (5 \, b c^{5} d + 3 \, b c^{5} e\right )} \arctan \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) - {\left (20 \, b c^{2} d + 9 \, b e\right )} \log \left (-c x + \sqrt {c^{2} x^{2} - 1}\right ) + {\left (6 \, b c^{3} e x^{3} + {\left (20 \, b c^{3} d + 9 \, b c e\right )} x\right )} \sqrt {c^{2} x^{2} - 1}}{120 \, c^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.44, size = 840, normalized size = 5.22 \[ \frac {1}{960} \, {\left (\frac {6 \, b x^{5} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{5} \arcsin \left (\frac {1}{c x}\right ) e}{c} + \frac {6 \, a x^{5} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{5} e}{c} + \frac {40 \, b d x^{3} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{3} \arcsin \left (\frac {1}{c x}\right )}{c} + \frac {3 \, b x^{4} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{4} e}{c^{2}} + \frac {40 \, a d x^{3} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{3}}{c} + \frac {30 \, b x^{3} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{3} \arcsin \left (\frac {1}{c x}\right ) e}{c^{3}} + \frac {30 \, a x^{3} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{3} e}{c^{3}} + \frac {40 \, b d x^{2} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{2}}{c^{2}} + \frac {120 \, b d x {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )} \arcsin \left (\frac {1}{c x}\right )}{c^{3}} + \frac {24 \, b x^{2} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{2} e}{c^{4}} + \frac {120 \, a d x {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}}{c^{3}} + \frac {60 \, b x {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )} \arcsin \left (\frac {1}{c x}\right ) e}{c^{5}} + \frac {60 \, a x {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )} e}{c^{5}} + \frac {160 \, b d \log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}{c^{4}} - \frac {160 \, b d \log \left (\frac {1}{{\left | c \right |} {\left | x \right |}}\right )}{c^{4}} + \frac {72 \, b e \log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}{c^{6}} - \frac {72 \, b e \log \left (\frac {1}{{\left | c \right |} {\left | x \right |}}\right )}{c^{6}} + \frac {120 \, b d \arcsin \left (\frac {1}{c x}\right )}{c^{5} x {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}} + \frac {120 \, a d}{c^{5} x {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}} + \frac {60 \, b \arcsin \left (\frac {1}{c x}\right ) e}{c^{7} x {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}} + \frac {60 \, a e}{c^{7} x {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}} - \frac {40 \, b d}{c^{6} x^{2} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{2}} + \frac {40 \, b d \arcsin \left (\frac {1}{c x}\right )}{c^{7} x^{3} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{3}} - \frac {24 \, b e}{c^{8} x^{2} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{2}} + \frac {40 \, a d}{c^{7} x^{3} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{3}} + \frac {30 \, b \arcsin \left (\frac {1}{c x}\right ) e}{c^{9} x^{3} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{3}} + \frac {30 \, a e}{c^{9} x^{3} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{3}} - \frac {3 \, b e}{c^{10} x^{4} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{4}} + \frac {6 \, b \arcsin \left (\frac {1}{c x}\right ) e}{c^{11} x^{5} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{5}} + \frac {6 \, a e}{c^{11} x^{5} {\left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}^{5}}\right )} c \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.06, size = 282, normalized size = 1.75 \[ \frac {a e \,x^{5}}{5}+\frac {a d \,x^{3}}{3}+\frac {b \,\mathrm {arccsc}\left (c x \right ) e \,x^{5}}{5}+\frac {b \,\mathrm {arccsc}\left (c x \right ) d \,x^{3}}{3}+\frac {b \,x^{4} e}{20 c \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}+\frac {b \,x^{2} e}{40 c^{3} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}+\frac {b d \,x^{2}}{6 c \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}-\frac {b d}{6 c^{3} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}+\frac {b \sqrt {c^{2} x^{2}-1}\, d \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{6 c^{4} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x}-\frac {3 b e}{40 c^{5} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}}+\frac {3 b \sqrt {c^{2} x^{2}-1}\, e \ln \left (c x +\sqrt {c^{2} x^{2}-1}\right )}{40 c^{6} \sqrt {\frac {c^{2} x^{2}-1}{c^{2} x^{2}}}\, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.33, size = 232, normalized size = 1.44 \[ \frac {1}{5} \, a e x^{5} + \frac {1}{3} \, a d x^{3} + \frac {1}{12} \, {\left (4 \, x^{3} \operatorname {arccsc}\left (c x\right ) + \frac {\frac {2 \, \sqrt {-\frac {1}{c^{2} x^{2}} + 1}}{c^{2} {\left (\frac {1}{c^{2} x^{2}} - 1\right )} + c^{2}} + \frac {\log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}{c^{2}} - \frac {\log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} - 1\right )}{c^{2}}}{c}\right )} b d + \frac {1}{80} \, {\left (16 \, x^{5} \operatorname {arccsc}\left (c x\right ) - \frac {\frac {2 \, {\left (3 \, {\left (-\frac {1}{c^{2} x^{2}} + 1\right )}^{\frac {3}{2}} - 5 \, \sqrt {-\frac {1}{c^{2} x^{2}} + 1}\right )}}{c^{4} {\left (\frac {1}{c^{2} x^{2}} - 1\right )}^{2} + 2 \, c^{4} {\left (\frac {1}{c^{2} x^{2}} - 1\right )} + c^{4}} - \frac {3 \, \log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} + 1\right )}{c^{4}} + \frac {3 \, \log \left (\sqrt {-\frac {1}{c^{2} x^{2}} + 1} - 1\right )}{c^{4}}}{c}\right )} b e \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int x^2\,\left (e\,x^2+d\right )\,\left (a+b\,\mathrm {asin}\left (\frac {1}{c\,x}\right )\right ) \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 7.47, size = 294, normalized size = 1.83 \[ \frac {a d x^{3}}{3} + \frac {a e x^{5}}{5} + \frac {b d x^{3} \operatorname {acsc}{\left (c x \right )}}{3} + \frac {b e x^{5} \operatorname {acsc}{\left (c x \right )}}{5} + \frac {b d \left (\begin {cases} \frac {x \sqrt {c^{2} x^{2} - 1}}{2 c} + \frac {\operatorname {acosh}{\left (c x \right )}}{2 c^{2}} & \text {for}\: \left |{c^{2} x^{2}}\right | > 1 \\- \frac {i c x^{3}}{2 \sqrt {- c^{2} x^{2} + 1}} + \frac {i x}{2 c \sqrt {- c^{2} x^{2} + 1}} - \frac {i \operatorname {asin}{\left (c x \right )}}{2 c^{2}} & \text {otherwise} \end {cases}\right )}{3 c} + \frac {b e \left (\begin {cases} \frac {c x^{5}}{4 \sqrt {c^{2} x^{2} - 1}} + \frac {x^{3}}{8 c \sqrt {c^{2} x^{2} - 1}} - \frac {3 x}{8 c^{3} \sqrt {c^{2} x^{2} - 1}} + \frac {3 \operatorname {acosh}{\left (c x \right )}}{8 c^{4}} & \text {for}\: \left |{c^{2} x^{2}}\right | > 1 \\- \frac {i c x^{5}}{4 \sqrt {- c^{2} x^{2} + 1}} - \frac {i x^{3}}{8 c \sqrt {- c^{2} x^{2} + 1}} + \frac {3 i x}{8 c^{3} \sqrt {- c^{2} x^{2} + 1}} - \frac {3 i \operatorname {asin}{\left (c x \right )}}{8 c^{4}} & \text {otherwise} \end {cases}\right )}{5 c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________